package com.cheng.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Cheng
 * @since 2019-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qd_users")
public class Users extends Model<Users> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "qq", type = IdType.ID_WORKER_STR)
    private String qq;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 邮箱状态
     */
    private Integer emailStatus;
    /**
     * 激活日期
     */
    private Date activTime;

    private String verifCode;


    @Override
    protected Serializable pkVal() {
        return this.qq;
    }

}
